#include<bits/stdc++.h>

using namespace std;

void f(int a, int b, int *c) {
//	cout<<"In function add: &c="<<(&c)<<endl;
    *c = a + b;
}

int main() {
    int a = 3, b = 4;
    int c, d;
//	cout<<"In function main: &c="<<(&c)<<endl;
    f(a, b, &c, &d);

    cout << c << endl;
    cout << d << endl;
}
